import request from '@/utils/request'

// 单笔订单打印批次明细分页查询
export function pagingByBatchId(query) {
  return request({
    url: '/order/projectOrderPrintBatchDetail/pagingByBatchId',
    method: 'get',
    params: query
  })
}

// 获取电子面单模板
export function getPrintTemplateByBatchId(query) {
  return request({
    url: '/order/projectOrderPrintBatchDetail/getPrintTemplateByBatchId',
    method: 'get',
    params: query
  })
}

// 根据printBatchId生成快递单号
export function updateTrackingNoByBatchId(query) {
  return request({
    url: '/order/projectOrderPrintBatchDetail/updateTrackingNoByBatchId',
    method: 'get',
    params: query
  })
}

// 更新批次打印状态
export function updatePrintStatus(query) {
  return request({
    url: '/order/projectOrderPrintBatchDetail/updatePrintStatus',
    method: 'get',
    params: query
  })
}

// 批量更新批次打印状态
export function batchUpdatePrintStatus(query) {
  return request({
    url: '/order/projectOrderPrintBatchDetail/batchUpdatePrintStatus',
    method: 'get',
    params: query
  })
}

